package com.teacher.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.teacher.common.CommonResult;
import com.teacher.pojo.dto.comment.CommentAddDto;
import com.teacher.pojo.dto.comment.CommentDto;
import com.teacher.pojo.dto.comment.CommentUpdateDto;
import com.teacher.pojo.entity.Comment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.teacher.pojo.entity.WechatUser;
import com.teacher.pojo.vo.comment.CommentVo;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jiangzhuohang
 * @since 2024-03-14
 */
public interface ICommentService extends IService<Comment> {

    IPage<CommentVo> getCommentPageData(CommentDto pageVo);

    CommonResult addComment(CommentAddDto dto);

    CommonResult deleteComment(List<Long> list);

    CommonResult updateComment(CommentUpdateDto updateDto);

    Boolean createComment(WechatUser AUser, WechatUser BUser, Long carpoolId, LocalDateTime endTime);
}
